Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction fixes and Client API (atop new quoting) #2522

Merged

Conversation

grumbach
Copy link
Member

@grumbach grumbach commented Dec 12, 2024

MERGE AFTER the QUOTING WORK #2519

This PR is based on top of and replaces #2518

let mut rate_limiter = RateLimiter::new();

for (content_addr, raw_quotes) in raw_quotes_per_addr {
// FIXME: find better way to deal with paid content addrs and feedback to the user

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
let metrics: Vec<_> = metrics.into_iter().map(|v| v.into()).collect();
let mut amounts = self.contract.getQuote(metrics.clone()).call().await?.prices;

// FIXME: temporary logic until the smart contract gets updated

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
let payment_verification_results = payment_vault.verify_payment(payment_verifications).await?;

for payment_verification_result in payment_verification_results {
// TODO we currently fail on a single invalid payment, maybe we should deal with this in a different way

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
@grumbach grumbach force-pushed the feat-transaction-client-api-atop-new-quoting branch 2 times, most recently from 6a4753f to 51a513f Compare December 12, 2024 08:40
@grumbach grumbach changed the title Transaction client api atop new quoting Transaction fixes and Client API (atop new quoting) Dec 12, 2024
@grumbach grumbach enabled auto-merge December 12, 2024 08:43
@maqi maqi force-pushed the feat-transaction-client-api-atop-new-quoting branch from 88a5e27 to e4270aa Compare December 12, 2024 13:10
@jacderida jacderida disabled auto-merge December 12, 2024 18:51
@maqi maqi force-pushed the feat-transaction-client-api-atop-new-quoting branch from bc84302 to 343a22d Compare December 12, 2024 18:56
@jacderida jacderida merged commit 2ea9e13 into maidsafe:main Dec 12, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants